// import './assets/main.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from './router'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'virtual:svg-icons-register'
import DataVVue3 from '@kjgl77/datav-vue3'
// 引入注册后的全局组件挂载到app
import geloab from '@/components/index.ts'
const app = createApp(App)
app.use(geloab)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(createPinia())
app.use(router)
// import axios from 'axios'
// axios.get('/api/get/userdata').then((result) => {
//     console.log(result,'11111111111111111111111');
    
// }).catch((err) => {
//   console.log(err);
  
// });
app.use(DataVVue3)
app.use(ElementPlus)
app.mount('#app')

